#ifndef KEYCOUNTSERVER_CLIENT_H_
#define KEYCOUNTSERVER_CLIENT_H_

namespace KeyCountServer {

class Client : public Runnable
{
public:
    Client(Server *server, int clientId);
    ~Client();
    bool start();
    void run(Thread *thread, void *arg);
    bool isStop();
    
public:
    Socket      *m_socket;
    Server      *m_server;

private:
    ClientNet   *m_net;
    Thread      *m_thread;
    bool        m_stop;
    int         m_clientId;
    bool        m_heartBeat;
};

}

#endif
